// <copyright file="ExpansionsOnly.cs" company="Microsoft">
//      Copyright (c) Microsoft Corporation.  All rights reserved.
// </copyright>
//---------------------------------------------------------------------

namespace Microsoft.Data.OData.Query.SemanticAst
{
    using System.Diagnostics.CodeAnalysis;

    /// <summary>
    /// Class that represents a selecting none of the properties or functions at this level, but there are still relevant expansions in this subtree.
    /// </summary>
    internal sealed class ExpansionsOnly : Selection
    {
        /// <summary>
        /// Get the singleton instance of <see cref="ExpansionsOnly"/>.
        /// </summary>
        [SuppressMessage("Microsoft.Security", "CA2104:DoNotDeclareReadOnlyMutableReferenceTypes", Justification = "ExpansionsOnly is immutable")]
        public static readonly ExpansionsOnly Instance = new ExpansionsOnly();

        /// <summary>
        /// Creates the singleton instance of this class.
        /// </summary>
        private ExpansionsOnly()
        {
        }
    }
}